Separate prime and composite number in two different list